import time


def show_run_time(func):
    def call_func(*args, **kwargs):
        t_start = time.time()
        ret = func(*args, **kwargs)
        t_stop = time.time()
        print("耗时:", t_stop - t_start)
        return ret

    return call_func


@show_run_time(1)
def print_test(num):
    print("这里是Python的课程，请认真学习,num=%d" % num)
    return 200


# print_test = show_run_time(print_test)
ret = print_test(100)
print(ret)
